<?php
/**
 * CreateTime: 2023/11/15 15:31
 * User:LinQ
 */
namespace App\Http\Requests\System;

use App\Http\Requests\BasicFormRequests;

class ListRequest extends BasicFormRequests
{
    protected $rule =[
        'page' => "required",
        'page_size' => "required|numeric|max:500",
    ];

    public function __construct(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null)
    {
        $this->message = [
            'page_size.required' => trans('message.prams_err',[
                'name' => trans('key.paging')
            ]),
            'page_size.max'=> trans('message.paging_max',[
                'number' => 500
            ]),
            'page.required' => trans('message.prams_err',[
                'name' => trans('key.paging')
            ]),
        ];
        parent::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
    }


    protected $scene = [];

}
